package pers.acp.test.application.po

import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import org.noear.solon.validation.annotation.NotBlank
import org.noear.solon.validation.annotation.NotEmpty
import org.noear.solon.validation.annotation.Validated

@ApiModel
data class TestPo(
    @ApiModelProperty("名称1")
    @field:NotBlank(message = "名称1不能为空")
    var name: String? = null,
    @ApiModelProperty("值1")
    @field:NotBlank(message = "值1不能为空")
    var value: String? = null,
    @ApiModelProperty("子项")
    @field:NotEmpty(message = "子项不能为空")
    @field:Validated
    var children: MutableList<TestSubPo> = mutableListOf()
)